/*
    Dominate 3D - A cube-based game of life

    Copyright (C) 2007, Craig H. Miller (kidmosey@gmail.com)

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __NET_H__
#define __NET_H__

#include <winsock2.h>

#include <string>

typedef std::string SocketParam;
typedef enum {
    CS_DISCONNECT = 0,
    CS_CHATTEXT,

    SV_SETPLAYERNAME,
    SV_REGISTER_PLAYER,
    SV_GETSERVERSETTINGS,
    SV_PICKCELL,
    SV_GETPLAYERLIST,

    CL_SERVERSETTINGS,
    CL_PICKCELL,
    CL_SERVER_FULL,
    CL_SET_CELL_STATE,
    CL_START_GAME,
    CL_ADD_PLAYER,
    CL_SET_PLAYER_NAME,
    CL_SETCELL,
    CL_CURRENTSELECTION,
    CL_SET_CURRENT_PLAYER,
    CL_SET_PLAYER_SCORE,
    CL_REMOVE_PLAYER
} TMessage;

namespace Server
{
    extern void StartServerThread(int port);
    extern void EndServerThread();
}

#endif // __NET_H__
